/**
 * AlarmSessionInit.java
 * Created 28 Sep 2011
 */
package com.fastwire.alarm.common.view.util;

import java.util.Locale;

import org.zkoss.web.Attributes;
import org.zkoss.zk.ui.Session;
import org.zkoss.zk.ui.util.SessionInit;

import com.fastwire.alarm.common.view.constant.DefaultValues;

/**
 * @author sigit <br>
 * @version 1.0 <br>
 * Application : alarmmanagement <br>
 * Copyright (c) fastwire-group 2011 <br>
 * <br>
 */
public class AlarmSessionInit implements SessionInit {

	/* (non-Javadoc)
	 * @see org.zkoss.zk.ui.util.SessionInit#init(org.zkoss.zk.ui.Session, java.lang.Object)
	 */
	@Override
	public void init(Session arg0, Object arg1) throws Exception {
		// TODO Auto-generated method stub
		arg0.setAttribute(Attributes.PREFERRED_LOCALE, new Locale(DefaultValues.LOCALE, DefaultValues.LOCALE));
	}

}
